import {view, binder, View} from "adajs";
import CourseService from "./state.js";

@view({
	className: "lgbadlist",
	template: "./template.html",
	style: "./style.scss",
	dataset: {
		service: CourseService
	}
})
class CourseList extends View {
	@binder("openPage")
	openNews({item}) {
		this.dispatchEvent("gotoPage", `/admin/kaoqin/detail?id=${item.oldPersonId}`);
	}
}

export default CourseList;